// order 商品
var mongoose = require('mongoose');

const supplyOrderSchema = new mongoose.Schema({
    supplierId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: ""
    },// (关联供应商管理员id)(供应商编号:和供应商管理员ID相同)
    goodsId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: ""
    },// (关联供应商管理员id)(供应商编号:和供应商管理员ID相同)
    number:Number,//数量
    price:Number
});

mongoose.model("supplyOrder", supplyOrderSchema, "supplyOrder");